import { createRouter, createWebHashHistory } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'

const routes: readonly RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/home',
  },
  {
    path: '/login',
    component: () => import("@/views/Login/index.vue")
  },
  {
    path: '/home',
    name: 'home',
    redirect: "/home/base/sysdictmanager",
    component: () => import("@/views/Home/index.vue")
  },
  {
    path: '/:pathMatch(.*)*',
    name: '404',
    component: () => import("@/views/NotFount.vue")
  }
]

const router = createRouter({
  routes: routes,
  history: createWebHashHistory()
})

export default router
